package com.example.homework2.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class homework2 {

    @RequestMapping("/work")
    public String showAll(Model model){
        String result = "1+1";
        model.addAttribute("result", result);

        model.addAttribute("a",60);
        model.addAttribute("b",3);
        model.addAttribute("c",13);

        return "index";
    }

}
